onSourceStarted

abstract fun onSourceStarted(source: Source)

Called when a specific Source within a playlist is about to start or has just started its playback or display.

This callback provides an opportunity to perform actions just before or as a content item becomes active. Implementers can also use this point to prevent a specific source from playing by throwing a SkipSourceException.

Parameters

source

The non-null Source object that is starting. Refer to the Source documentation for details on the information it provides.

See also

Throws

if the playback of this particular source should be actively prevented or skipped by the playback engine.